package com.server;

import com.server.core.config.BasicConfig;
import com.server.core.server.NettyServer;
import com.server.core.util.PropertiesUtil;

public class MyServerApplication {
    public static void main(String[] args) {
         /// 1 - 读取服务器prop配置文件
         PropertiesUtil prop = PropertiesUtil.getInstance();
        BasicConfig.setPort(Integer.parseInt(prop.getProperty("port")));

        /// 2 - 服务器期启动
        NettyServer server = new NettyServer();
        new Thread(()-> {
            server.run();
        }).start();
    }
}
